import request from "./request";





export function getEnterpriseInfoApi() {
    return request({
        url: "/enterprise/info",
        method: 'get'
    })
}

export function updateMyInfoApi(data:any) {
    return request({
        url: "enterprise/update_my_info",
        method: 'put',
        data
    })
}
export function  updatePwdApi(data:any) {
    return request({
        url: "/auth/updatePwd",
        method: 'Patch',
        data
    })
}








export function addUserApi(data:any) {
    return request({
        url: "/enterprise/addUser",
        method: 'post',
        data
    })
}
export function updateUserInfo(data:any) {
    return request({
        url: "/enterprise/update_user_info",
        method: 'put',
        data
    })
}
export function getUserInfoByIdApi(params:any) {
    return request({
        url: "/enterprise/get_user_info_by_id",
        method: 'get',
        params
    })
}

export function deleteUserByUserIdApi(data:any) {
    return request({
        url: "/admin/del_user_by_id",
        method: 'delete',
        data
    })
}



export function getUserByInfoApi(params:any) {
    return request({
        url: "/enterprise/get_user_list_by_name",
        method: 'get',
        params
    })
}


export function getEnterpriseApi(params:any) {
    return request({
        url: "/enterprise/getEnterprise",
        method: 'get',
        params
    })
}
